package project.teg.games.game.gestures;

import project.teg.configuration.Gestures;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;
import android.graphics.RectF;

public class InteractiveObject {

	public PointF locationCenter;
	public PointF size;
	private Paint paint;

	public InteractiveObject(PointF location, PointF sizeCenter) {
		paint = new Paint();
		paint.setColor(Gestures.interactiveObjectColor);
		this.locationCenter = location;
		this.size = sizeCenter;
	}

	public void renderObject(Canvas canvas) {
		canvas.drawOval(new RectF(locationCenter.x - size.x / 2,
				locationCenter.y - size.y / 2, locationCenter.x + size.x / 2,
				locationCenter.y + size.y / 2), paint);
	}
}
